package com.sias.spring.service;

import com.sias.spring.aspect.AspectAnnotation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/**
 * @author 吴文杰
 * @version 1.0
 * @createTime 2023-05-28 14:11:36
 */
@Component
@SuppressWarnings("all")
public class UserServiceImpl implements UserService {

  @Autowired
  private OrderService orderService;

  @Autowired
  private JdbcTemplate jdbcTemplate;

  // @Transactional
  @AspectAnnotation("测试模块")
  public String test(String name) {
    return  "nihao";
    // jdbcTemplate.execute("INSERT into class(id,class_name) VALUES(10,\"2019级信管二班\");");
    // throw new NullPointerException();
  }

}
